

//
//  SucceedView.m
//  1243
//
//  Created by apple on 16/7/4.
//  Copyright © 2016年 1243. All rights reserved.
//

#import "SucceedView.h"

@implementation SucceedView

- (instancetype)initWithFrame:(CGRect)frame {
    if (self = [super initWithFrame:frame]) {
        
        UIView *backView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, frame.size.width, frame.size.height)];
//        backView.backgroundColor = [UIColor yellowColor];
        backView.layer.borderColor = [[UIColor grayColor] CGColor];
        backView.layer.borderWidth = 0.5;
        
        self.userNumberLB = [[UILabel alloc]initWithFrame:CGRectMake(10, 0, frame.size.width - 20, frame.size.height/4)];
        self.userNumberLB.text = @"揭晓号码:";
        
        self.userNameLB = [[UILabel alloc]initWithFrame:CGRectMake(10, frame.size.height/4, frame.size.width - 20, frame.size.height/4)];
        self.userNameLB.text = @"得宝用户:";
        
        self.joinTimeLB = [[UILabel alloc]initWithFrame:CGRectMake(10, frame.size.height/4*2, frame.size.width - 20, frame.size.height/4)];
        self.joinTimeLB.text = @"参与时间:";
        
        self.peopleCountLB = [[UILabel alloc]initWithFrame:CGRectMake(10, frame.size.height/4*3, frame.size.width - 100, frame.size.height/4)];
        self.peopleCountLB.text = @"参与人次:";
        
        self.jisuanDetailLB = [[UILabel alloc]initWithFrame:CGRectMake(frame.size.width - 100, frame.size.height/4*3, 100, frame.size.height/4)];
        self.jisuanDetailLB.text = @"计算详情";
        
        
        [self addSubview:backView];
        [backView addSubview:self.userNumberLB];
        [backView addSubview:self.userNameLB];
        [backView addSubview:self.joinTimeLB];
        [backView addSubview:self.peopleCountLB];
        [backView addSubview:self.jisuanDetailLB];
    }
    return self;
}

@end
